<template>
	<view>
		<app-page-design :res="res"></app-page-design>
	</view>
</template>

<script>
	import {apiDesignDetail} from '../api/api.js'
	export default {
		data() {
			return {
				res: {}
			}
		},
		onLoad(option) {
			// 根据id或name查询装修页
			let param = {}
			if(option.id) param.id = option.id
			if(option.name) param.name = option.name
			apiDesignDetail(param).then(res=>{
				this.res = res
			})
		}
	}
</script>